#include "TcpServer.hpp"

char usage[] = "Usage : ./client.out (port)";
uint16_t port = 12312;

int main(int argc,char *args[]){
    if(argc > 2)
    {
        std::cout << usage << std::endl;
        exit(2);
    }

    if(argc == 2)
    {
        port = std::stoi(args[1]);
    }
    
    TcpServer server(port);
    server.InitServer();
    server.Start();
    return 0;
}